import VueRouter from 'vue-router'

//引入组件
import HomeContainer from './components/tabbar/HomeContainer.vue'
import MemberContainer from './components/tabbar/MemberContainer.vue'
import ShopcarContainer from './components/tabbar/ShopcarContainer.vue'
import SearchContainer from './components/tabbar/SearchContainer.vue'
import Newslist from './components/news/Newslist.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import Photolist from './components/photo/Photolist.vue'

var router = new VueRouter({
	routes :[
	{ path : '/',redirect : '/home'},
	{ path : '/home',component : HomeContainer },
	{ path : '/member',component : MemberContainer },
	{ path : '/shopcar',component : ShopcarContainer },
	{ path : '/search',component : SearchContainer },
	{ path : '/home/Newslist',component : Newslist},
	{ path : '/home/NewsInfo/:id',component : NewsInfo},
	{ path : '/home/Photolist',component : Photolist}
	],
	linkActiveClass:'mui-active'
})

export default router
